package club.gskj.common.constant;

/**
 * @author : Connor-G 康纳-郭
 * @date : 13:59 21.1.31
 * @Company : http://www.zzrgsoft.org
 * @Version : 1.0
 */

/**
 * 商品常量枚举类
 */
public class ProductConstant {

    // 规格参数
    public enum AttrEnum {
        ATTR_TYPE_BASE(1, "基本属性"), ATTR_TYPE_SALE(0, "销售属性");

        private Integer code;
        private String msg;

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    //发布状态
    public enum ProductStatusEnum {
        NEW_SPU(0, "新建"),
        UP_SPU(1, "上架"),
        DOWN_SPU(2, "下架");

        private Integer code;
        private String msg;

        ProductStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
